package CouistotEnum;

public enum Category {
	PLAT ("PLAT"),
	ENTREE ("ENTREE"),
	DESSERT ("DESSERT"),
	BOISSON ("BOISSON"),
	VIDE ("VIDE");
	
	private final String name;       

    private Category(String s) {
        name = s;
    }

    public boolean equalsName(String otherName){
        return (otherName == null)? false:name.equals(otherName);
    }

    public String toString(){
       return name;
    }

	
	
	
}
